﻿using EyFramework.ORM;
using Ncov2019.Entity;
using System.Collections.Generic;

namespace Ncov2019.Core.Dao
{
    /// <summary>
    ///  NCOV_RECORDS表的数据库操作
    /// </summary>
    public class NcovRecordsDao : BaseDaoHis<NcovRecords>, INcovRecordsDao
    {
        public List<NcovRecords> QueryBy(NcovRecordParam ncovRecordParam)
        {
            string whereStr = string.Format("t.ORD_DT>='{0}' and t.ORD_DT<='{1}'", ncovRecordParam.START_DT, ncovRecordParam.END_DT);
            return Db.Queryable<NcovRecords>("t").Where(whereStr).OrderBy("ORD_DT").ToList();
        }


    }
}